home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / AEmaterialFacadeTemplate.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  4.6 KB  |  135 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //
  20. //  Procedure Name:
  21. //    AEmaterialFacadeTemplate
  22. //
  23. //  Description Name;
  24. //    Creates the attribute editor controls for the materialFacade Node
  25. //
  26. //  Input Value:
  27. //    nodeName 
  28. //
  29. //  Output Value:
  30. //    None
  31. // 
  32.  
  33. // global proc AEmaterialFacadeShadersNew ( string $surfaceShader, 
  34. //                                         string $volumeShader,
  35. //                                         string $imageShader,
  36. //                                         string $displacementShader,
  37. //                                         string $defaultShadows )
  38. // {
  39. //    setUITemplate -pst attributeEditorTemplate;
  40. //
  41. //    attrNavigationControlGrp
  42. //        -l "Surface Material"
  43. //        -at $surfaceShader
  44. //        surfaceShaderControl;
  45. //
  46. //    attrNavigationControlGrp
  47. //        -l "Volume Material"
  48. //        -at $volumeShader
  49. //        volumeShaderControl;
  50. //
  51. //    attrNavigationControlGrp
  52. //        -l "Image Material"
  53. //        -at $imageShader
  54. //        imageShaderControl;
  55. //
  56. //    attrNavigationControlGrp
  57. //        -l "Displacement Mat."
  58. //        -at $displacementShader
  59. //        displacementShaderControl;
  60. //
  61. //    attrNavigationControlGrp
  62. //        -l "Default Shadows"
  63. ////        -at $defaultShadows
  64. ////        defaultShadowsControl;
  65. //
  66. //    setUITemplate -ppt;
  67. // }
  68. //
  69. // global proc AEmaterialFacadeShadersReplace ( string $surfaceShader, 
  70. //                                             string $volumeShader,
  71. //                                             string $imageShader,
  72. //                                             string $displacementShader,
  73. //                                             string $defaultShadows )
  74. // {
  75. //    attrNavigationControlGrp -edit
  76. //        -at $surfaceShader
  77. //        surfaceShaderControl;
  78. //
  79. //    attrNavigationControlGrp -edit
  80. //        -at $volumeShader
  81. //        volumeShaderControl;
  82. //
  83. //    attrNavigationControlGrp -edit
  84. //        -at $imageShader
  85. //        imageShaderControl;
  86. //
  87. //    attrNavigationControlGrp -edit
  88. //        -at $displacementShader
  89. //        displacementShaderControl;
  90. //
  91. //    attrNavigationControlGrp -edit
  92. //        -at $defaultShadows
  93. //        defaultShadowsControl;
  94. // }
  95.  
  96.  
  97. global proc AEmaterialFacadeTemplate ( string $nodeName )
  98. {
  99.     AEswatchDisplay $nodeName;
  100.     editorTemplate -beginScrollLayout;
  101.         editorTemplate -beginLayout "Default Material Attributes" -collapse 0;
  102. //            editorTemplate -callCustom "AEmaterialFacadeShadersNew"
  103. //                    "AEmaterialFacadeShadersReplace"
  104. //                    "surfaceShader"
  105. //                    "volumeShader"
  106. //                    "imageShader"
  107. //                    "displacementShader"
  108. //                    "defaultShadows";
  109.         editorTemplate -endLayout;
  110.  
  111.         editorTemplate -suppress "surfaceShader";
  112.         editorTemplate -suppress "volumeShader";
  113.         editorTemplate -suppress "imageShader";
  114.         editorTemplate -suppress "displacementShader";
  115.         editorTemplate -suppress "defaultLights";
  116.         editorTemplate -suppress "defaultShadows";
  117.         editorTemplate -suppress "dagSetMembers";
  118.         editorTemplate -suppress "dnSetMembers";
  119.         editorTemplate -suppress "groupNodes";
  120.         editorTemplate -suppress "usedBy";
  121.         editorTemplate -suppress "unsolicited";
  122.         editorTemplate -suppress "linkedLights";
  123.         editorTemplate -suppress "ignoredLights";
  124.         editorTemplate -suppress "linkedShadows";
  125.         editorTemplate -suppress "ignoredShadows";
  126.  
  127.     editorTemplate -suppress "bogusAttribute";
  128.  
  129.         // include/call base class/node attributes
  130.         AEobjectSetNoScroll $nodeName;
  131.  
  132. //    editorTemplate -addExtraControls;
  133.     editorTemplate -endScrollLayout;
  134. }
  135.